package cn.stylefeng.guns.pay.interceptor;

/*public class AliPayInterceptor implements HandlerInterceptor {

    @Override
    public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object handler){
        if (HandlerMethod.class.equals(handler.getClass())) {
            HandlerMethod method = (HandlerMethod) handler;
            Object controller = method.getBean();
            if (!(controller instanceof AliPayApiController)) {
                throw new RuntimeException("控制器需要继承 AliPayApiController");
            }
            try {
                AliPayApiConfigKit.setThreadLocalAliPayApiConfig(((AliPayApiController) controller).getApiConfig());
                return true;
            } finally {

            }
        }
        return false;
    }
}*/
